/*
 * @Descripttion: donglyc
 * @version:
 * @Author: donglyc
 * @Date: 2021-01-15 11:13:11
 * @LastEditors: donglyc
 * @LastEditTime: 2021-01-15 14:32:03
 */
import { useState, useEffect } from 'react';
import { queryByIdEntry } from '@/services/addCheck';

export const useEntryInfoById = (id: string) => {
  const [info, setInfo] = useState<Object>({});
  useEffect(() => {
    queryByIdEntry({ id: id }).then(response => {
      console.log('????????', response);
      setInfo(response);
    });
  }, []);
  return info;
};
